package raindrops

import (
	"strconv"
	"strings"
)

const testVersion = 3

func Convert(num int) string {
	needConvert := false
	var convertResult = make([]string, 3)
	if num%3 == 0 {
		convertResult[0] = "Pling"
		needConvert = true
	}
	if num%5 == 0 {
		convertResult[1] = "Plang"
		needConvert = true
	}
	if num%7 == 0 {
		convertResult[2] = "Plong"
		needConvert = true
	}
	if needConvert {
		return strings.Join(convertResult, "")
	}

	return strconv.Itoa(num)
}
